package com.alibaba.cloud.exception;

import com.alibaba.cloud.enums.ResultCodeEnum;

import lombok.Getter;

/**
 * @Description:通用异常
 * @author: zhb1316783262@163.com
 * @date: 2020年6月5日下午1:43:04
 */
@Getter
public class CommonException extends RuntimeException {

	private static final long serialVersionUID = -6581495158456105329L;

	private ResultCodeEnum resultCodeEnum;

	public CommonException(ResultCodeEnum resultCodeEnum, String message) {
		super(message);
		this.resultCodeEnum = resultCodeEnum;
	}
}
